<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class Qh_MiniProgramComponentRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'bail|required|string',
            'componentName' => 'bail|required|string',
            'status' => 'bail|nullable|in:1,2',
            'data' => 'bail|nullable'
        ];
    }
}
